#ifndef ADDVOTE_H
#define ADDVOTE_H

#include "Common.h"

namespace Ui {
class AddVote;
}

class AddVote : public QDialog
{
    Q_OBJECT

public:
    explicit AddVote(QWidget *parent = nullptr,int _userID=-1);
    ~AddVote();

private slots:

    //点击按钮，将投票信息插入到数据库中
    void on_buttonBox_accepted();

private:
    Ui::AddVote *ui;
    int userID;
};

#endif // ADDVOTE_H
